package com.example.spring_config.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.spring_config.mapper.Permission;
import com.example.spring_config.mapper.User;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;

@Service
public interface PermissionService extends IService<Permission> {
    /**
     * 获取用户的菜单权限
     * @param uid
     * @return
     */
    Set<Permission> getUserPermission(String uid);

    /**
     * 根据用户的id获取用户权限的url
     * @param uid
     * @return
     */
    Set<String> getUserPermissionUrlByRid(String uid);
}
